package com.stan.core.mapper;

import com.stan.core.vo.PageOneSkipConvertRate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PageOneSkipConvertRateMapper {
    /**
     * 批量插入
     */
    @Insert("<script>insert into t_page_convert_rate (task_id,split,convert_rate) values " +
            "<foreach collection='pageOneSkipConvertRateList' item='item' separator=','>" +
            "(#{item.taskId},#{item.split},#{item.convertRate})" +
            "</foreach>" +
            "</script>")
    void insertBatch(@Param(value = "pageOneSkipConvertRateList") List<PageOneSkipConvertRate> pageOneSkipConvertRateList);

}
